<?php

/**
 * @Project NUKEVIET 3.x
 * @Author VINADES.,JSC (contact@vinades.vn)
 * @Copyright (C) 2013 VINADES.,JSC. All rights reserved
 * @Createdate Mon, 12 Aug 2013 03:44:28 GMT
 */

if ( ! defined( 'NV_IS_FILE_ADMIN' ) ) die( 'Stop!!!' );

$page_title = "Trang chính";

$contents = "
<table class=\"tab1\">
      <thead>
         <tr>
            <td>
               STT
            </td>
            <td>
               Họ và tên
            </td>
            <td>
               Ngày sinh
            </td>
            <td>
               Địa chỉ
            </td>
         </tr>
      </thead>
      <tbody>";
$allSTD = getALLstudent( );
foreach ( $allSTD as $student )
{
   $contents .= "
         <tr>
            <td>
               " . $student['stt'] . "
            </td>
            <td>
               " . $student['hoten'] . "
            </td>
            <td>
               " . $student['ngaysinh'] . "
            </td>
            <td>
               " . $student['diachi'] . "
            </td>
         </tr>";
}
$contents .= "</tbody></table>";

include ( NV_ROOTDIR . "/includes/header.php" );
echo nv_admin_theme( $contents );
include ( NV_ROOTDIR . "/includes/footer.php" );

?>